<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../css/member_global.css?t={ctime}" rel="stylesheet" type="text/css" />
<link href="../css/member_main_lot_all.css?t={ctime}" rel="stylesheet" type="text/css">
<link href="../css/member_main_lot_b1.css?t={ctime}" rel="stylesheet" type="text/css">
<title>{Title}</title>
<script language="JavaScript">
<!--
var intNowNum = null;

function ChangeClass(intA, isOver){
	if(isOver == 1){
		document.getElementById("AnimalsOdds" + intA).style.backgroundColor = '#CCFFCC';
	}else{
		if(document.SAFrm["ChoiceNumber["+intA+"]"].checked == false)document.getElementById("AnimalsOdds" + intA).style.backgroundColor = '#FFFFFF';
	}
}

function QuickChoice(intT){
	var arrT = new Array(), i = 0, intCNum = 0;
	arrT[0] = new Array(0, 0 ,1 ,0 ,0 ,0 ,0 ,1 ,1 ,0 ,1 ,1 ,1); //家禽
	arrT[1] = new Array(0, 1 ,0 ,1 ,1 ,1 ,1 ,0 ,0 ,1 ,0 ,0 ,0); //野獸
	for(i = 1; i <= 12; i++){
		intCNum = i + 12*intNowNum;
		if(arrT[intT][i] == 1){
			document.SAFrm["ChoiceNumber[" + intCNum + "]"].checked = true;
			ChangeClass(intCNum, 1);
		}else{
			document.SAFrm["ChoiceNumber[" + intCNum + "]"].checked = false;
			ChangeClass(intCNum, 0);
		}
	}
	CheckChoice();
}

function SplitParam(){
	var strParam = "", arrParam = new Array();
	strParam = (document.SAFrm.SNumber[0].checked)?document.SAFrm.SNumber[0].value:document.SAFrm.SNumber[1].value;
	arrParam = strParam.split("#");
	document.SAFrm.Number.value = arrParam[0];
	document.SAFrm.OddsID.value = arrParam[1];
	document.SAFrm.Odds.value = arrParam[2];
	return true;
}

function CheckChoice(){
	var intChBox = 0, j = 0, i = 0, objChBox, intCNum = 0;
	var intMaxSd = 0, intMinSd = 0, isFull = 0, intNum = 0;
	var arrMinSd = [6, 6];
	var arrMaxSd = [6, 6];

	with(document.SAFrm){
		for(i = 0; i < Number.length; i++){
			intNum = i;
			if(Number[i].checked){
				intNowNum = intNum;
				intMaxSd = arrMaxSd[i];
				intMinSd = arrMinSd[i];
				for(intCNum = (1 + 12*intNum); intCNum <= (12 + 12*intNum); intCNum++){
					objChBox = document.SAFrm["ChoiceNumber["+intCNum.toString()+"]"];
					objChBox.disabled = false;
				}
			}else if(Number[i].disabled == false){
				for(intCNum = (1 + 12*intNum); intCNum <= (12 + 12*intNum); intCNum++){
					objChBox = document.SAFrm["ChoiceNumber["+intCNum.toString()+"]"];
					objChBox.checked = false;
					objChBox.disabled = true;
					ChangeClass(intCNum, 0);
				}
			}
		}

		for(intCNum = (1 + 12*intNowNum); intCNum <= ( 12 + 12*intNowNum); intCNum++){
			objChBox = document.SAFrm["ChoiceNumber["+intCNum.toString()+"]"];
			objChBox.disabled = false;
			ChangeClass(intCNum, 0);
			if(objChBox.checked){
				intChBox++;
				ChangeClass(intCNum, 0);
			}
			if(intChBox == intMaxSd)break;
		}

		if(intChBox == intMaxSd){
			for(intCNum = (1 + 12*intNowNum); intCNum <= ( 12 + 12*intNowNum); intCNum++){
				objChBox = document.SAFrm["ChoiceNumber["+intCNum.toString()+"]"];
				if(objChBox.checked == false)objChBox.disabled = true;
			}
			isFull++;
		}

		BSubmit.disabled = (intChBox <= intMaxSd && intChBox >= intMinSd && intNowNum !== null)?false:true;
	}
}
//-->
</script>
</head>

<body oncontextmenu="window.event.returnValue=false" ondragstart="window.event.returnValue=false" onselectstart="event.returnValue=false">

<form action="10m15_wager.php" name="SAFrm" target="leftFrame" method="post" onreset="setTimeout('CheckChoice()', 500);" onsubmit="SplitParam();">
<input type="hidden" name="UserID" value="{UserID}">
<input type="hidden" name="GambleID" value="{GambleID}">
<input type="hidden" name="LottoID" value="1">
<input type="hidden" name="Bet_Type" value="30">
<input type="hidden" name="sid" value="{sid}">

<!--樣式2-->
<div class="topStyle_2">
<table class="mtop" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
	<td align="center"><table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td align="center" class="menu_title">{Title}</td>
			<td align="right" valign="top" class="mictxt">{Periods}<em>{SerialNo}</em> ({OpeningDate}{ShowGameDate}&nbsp;{ShowGameTime})</td>
		</tr>
		</table>
	</td>
</tr>
<tr class="menu_tab">
	<td nowrap="nowrap" class="menu_tab" >&nbsp;</td>
</tr>
</table>
</div>

<table width="725" border="0" cellpadding="0" cellspacing="1" class="mbtab_lnu">
<thead>
  <tr>
    <td width="50%"><input name="Number" type="radio" class="zadot" value="0" onclick="CheckChoice()" {Radio0}>{Win}</td><!-- 中 //-->
    <td width="50%"><input name="Number" type="radio" class="zadot" value="1" onclick="CheckChoice()" {Radio1}>{NoWin}</td><!-- 不中 //-->
  </tr>
</thead>
</table>

<table width="725" border="0" cellpadding="0" cellspacing="0" class="mbtab_mbnu2">
  <tr class="mbtitle">
    <td width="187">{NumberTitle}</td>
    <td width="50">{AnimalsTitle}</td>
	<td width="73">{OddsTitle}</td>
    <td width="50">{ChoiceTitle}</td>

    <td width="50">{AnimalsTitle}</td>
	<td width="73">{OddsTitle}</td>
    <td width="50">{ChoiceTitle}</td>
    <td width="188">{QuickChoice}</td>
  </tr>
  <tr class="mcen">
    <td class="mbline_nb">{AnimalsParam1}</td>
    <th class="mcen">{AnimalsTip1}</th>
	<td class="mbline_baratio">{AnimalsOdds1}</td>
    <td class="mbline_baratio" id="AnimalsOdds1" AC1_S onmouseover="ChangeClass(1, 1)" onmouseout="ChangeClass(1, 0)" onclick="CheckChoice()" AC1_E><input type="checkbox" name="ChoiceNumber[1]" value="1:{OddsID1}"></td>

    <th class="mcen">{AnimalsTip1}</th>
	<td class="mbline_baratio">{AnimalsOdds13}</td>
    <td class="mbline_baratio" id="AnimalsOdds13" AC13_S onmouseover="ChangeClass(13, 1)" onmouseout="ChangeClass(13, 0)" onclick="CheckChoice()" AC13_E><input type="checkbox" name="ChoiceNumber[13]" value="13:{OddsID13}"></td>
    <td class="mbline_baratio"><a href="JavaScript:QuickChoice(0)">{Poultry}</a></td>
  </tr>
  <tr class="mcen">
    <td class="mbline_nb">{AnimalsParam2}</td>
    <th class="mcen">{AnimalsTip2}</th>
	<td class="mbline_baratio">{AnimalsOdds2}</td>
    <td class="mbline_baratio" id="AnimalsOdds2" AC2_S onmouseover="ChangeClass(2, 1)" onmouseout="ChangeClass(2, 0)" onclick="CheckChoice()" AC2_E><input type="checkbox" name="ChoiceNumber[2]" value="2:{OddsID2}"></td>

    <th class="mcen">{AnimalsTip2}</th>
	<td class="mbline_baratio">{AnimalsOdds14}</td>
    <td class="mbline_baratio" id="AnimalsOdds14" AC14_S onmouseover="ChangeClass(14, 1)" onmouseout="ChangeClass(14, 0)" onclick="CheckChoice()" AC14_E><input type="checkbox" name="ChoiceNumber[14]" value="14:{OddsID14}"></td>
    <td class="mbline_baratio"><a href="JavaScript:QuickChoice(1)">{Beast}</a></td>
  </tr>
  <tr class="mcen">
    <td class="mbline_nb">{AnimalsParam3}</td>
    <th class="mcen">{AnimalsTip3}</th>
	<td class="mbline_baratio">{AnimalsOdds3}</td>
    <td class="mbline_baratio" id="AnimalsOdds3" AC3_S onmouseover="ChangeClass(3, 1)" onmouseout="ChangeClass(3, 0)" onclick="CheckChoice()" AC3_E><input type="checkbox" name="ChoiceNumber[3]" value="3:{OddsID3}"></td>

    <th class="mcen">{AnimalsTip3}</th>
	<td class="mbline_baratio">{AnimalsOdds15}</td>
    <td class="mbline_baratio" id="AnimalsOdds15" AC15_S onmouseover="ChangeClass(15, 1)" onmouseout="ChangeClass(15, 0)" onclick="CheckChoice()" AC15_E><input type="checkbox" name="ChoiceNumber[15]" value="15:{OddsID15}"></td>
    <td class="mbline_baratio">&nbsp;</td>
  </tr>
  <tr class="mcen">
    <td class="mbline_nb">{AnimalsParam4}</td>
    <th class="mcen">{AnimalsTip4}</th>
	<td class="mbline_baratio">{AnimalsOdds4}</td>
    <td class="mbline_baratio" id="AnimalsOdds4" AC4_S onmouseover="ChangeClass(4, 1)" onmouseout="ChangeClass(4, 0)" onclick="CheckChoice()" AC4_E><input type="checkbox" name="ChoiceNumber[4]" value="4:{OddsID4}"></td>

    <th class="mcen">{AnimalsTip4}</th>
	<td class="mbline_baratio">{AnimalsOdds16}</td>
    <td class="mbline_baratio" id="AnimalsOdds16" AC16_S onmouseover="ChangeClass(16, 1)" onmouseout="ChangeClass(16, 0)" onclick="CheckChoice()" AC16_E><input type="checkbox" name="ChoiceNumber[16]" value="16:{OddsID16}"></td>
    <td class="mbline_baratio">&nbsp;</td>
  </tr>
  <tr class="mcen">
    <td class="mbline_nb">{AnimalsParam5}</td>
    <th class="mcen">{AnimalsTip5}</th>
	<td class="mbline_baratio">{AnimalsOdds5}</td>
    <td class="mbline_baratio" id="AnimalsOdds5" AC5_S onmouseover="ChangeClass(5, 1)" onmouseout="ChangeClass(5, 0)" onclick="CheckChoice()" AC5_E><input type="checkbox" name="ChoiceNumber[5]" value="5:{OddsID5}"></td>

    <th class="mcen">{AnimalsTip5}</th>
	<td class="mbline_baratio">{AnimalsOdds17}</td>
    <td class="mbline_baratio" id="AnimalsOdds17" AC17_S onmouseover="ChangeClass(17, 1)" onmouseout="ChangeClass(17, 0)" onclick="CheckChoice()" AC17_E><input type="checkbox" name="ChoiceNumber[17]" value="17:{OddsID17}"></td>
    <td class="mbline_baratio">&nbsp;</td>
  </tr>
  <tr class="mcen">
    <td class="mbline_nb">{AnimalsParam6}</td>
    <th class="mcen">{AnimalsTip6}</th>
	<td class="mbline_baratio">{AnimalsOdds6}</td>
    <td class="mbline_baratio" id="AnimalsOdds6" AC6_S onmouseover="ChangeClass(6, 1)" onmouseout="ChangeClass(6, 0)" onclick="CheckChoice()" AC6_E><input type="checkbox" name="ChoiceNumber[6]" value="6:{OddsID6}"></td>

    <th class="mcen">{AnimalsTip6}</th>
	<td class="mbline_baratio">{AnimalsOdds18}</td>
    <td class="mbline_baratio" id="AnimalsOdds18" AC18_S onmouseover="ChangeClass(18, 1)" onmouseout="ChangeClass(18, 0)" onclick="CheckChoice()" AC18_E><input type="checkbox" name="ChoiceNumber[18]" value="18:{OddsID18}"></td>
    <td class="mbline_baratio">&nbsp;</td>
  </tr>
  <tr class="mcen">
    <td class="mbline_nb">{AnimalsParam7}</td>
    <th class="mcen">{AnimalsTip7}</th>
	<td class="mbline_baratio">{AnimalsOdds7}</td>
    <td class="mbline_baratio" id="AnimalsOdds7" AC7_S onmouseover="ChangeClass(7, 1)" onmouseout="ChangeClass(7, 0)" onclick="CheckChoice()" AC7_E><input type="checkbox" name="ChoiceNumber[7]" value="7:{OddsID7}"></td>

    <th class="mcen">{AnimalsTip7}</th>
	<td class="mbline_baratio">{AnimalsOdds19}</td>
    <td class="mbline_baratio" id="AnimalsOdds19" AC19_S onmouseover="ChangeClass(19, 1)" onmouseout="ChangeClass(19, 0)" onclick="CheckChoice()" AC19_E><input type="checkbox" name="ChoiceNumber[19]" value="19:{OddsID19}"></td>
    <td class="mbline_baratio">&nbsp;</td>
  </tr>
  <tr class="mcen">
    <td class="mbline_nb">{AnimalsParam8}</td>
    <th class="mcen">{AnimalsTip8}</th>
	<td class="mbline_baratio">{AnimalsOdds8}</td>
    <td class="mbline_baratio" id="AnimalsOdds8" AC8_S onmouseover="ChangeClass(8, 1)" onmouseout="ChangeClass(8, 0)" onclick="CheckChoice()" AC8_E><input type="checkbox" name="ChoiceNumber[8]" value="8:{OddsID8}"></td>

    <th class="mcen">{AnimalsTip8}</th>
	<td class="mbline_baratio">{AnimalsOdds20}</td>
    <td class="mbline_baratio" id="AnimalsOdds20" AC20_S onmouseover="ChangeClass(20, 1)" onmouseout="ChangeClass(20, 0)" onclick="CheckChoice()" AC20_E><input type="checkbox" name="ChoiceNumber[20]" value="20:{OddsID20}"></td>
    <td class="mbline_baratio">&nbsp;</td>
  </tr>
  <tr class="mcen">
    <td class="mbline_nb">{AnimalsParam9}</td>
    <th class="mcen">{AnimalsTip9}</th>
	<td class="mbline_baratio">{AnimalsOdds9}</td>
    <td class="mbline_baratio" id="AnimalsOdds9" AC9_S onmouseover="ChangeClass(9, 1)" onmouseout="ChangeClass(9, 0)" onclick="CheckChoice()" AC9_E><input type="checkbox" name="ChoiceNumber[9]" value="9:{OddsID9}"></td>

    <th class="mcen">{AnimalsTip9}</th>
	<td class="mbline_baratio">{AnimalsOdds21}</td>
    <td class="mbline_baratio" id="AnimalsOdds21" AC21_S onmouseover="ChangeClass(21, 1)" onmouseout="ChangeClass(21, 0)" onclick="CheckChoice()" AC21_E><input type="checkbox" name="ChoiceNumber[21]" value="21:{OddsID21}"></td>
    <td class="mbline_baratio">&nbsp;</td>
  </tr>
  <tr class="mcen">
    <td class="mbline_nb">{AnimalsParam10}</td>
    <th class="mcen">{AnimalsTip10}</th>
	<td class="mbline_baratio">{AnimalsOdds10}</td>
    <td class="mbline_baratio" id="AnimalsOdds10" AC10_S onmouseover="ChangeClass(10, 1)" onmouseout="ChangeClass(10, 0)" onclick="CheckChoice()" AC10_E><input type="checkbox" name="ChoiceNumber[10]" value="10:{OddsID10}"></td>

    <th class="mcen">{AnimalsTip10}</th>
	<td class="mbline_baratio">{AnimalsOdds22}</td>
    <td class="mbline_baratio" id="AnimalsOdds22" AC22_S onmouseover="ChangeClass(22, 1)" onmouseout="ChangeClass(22, 0)" onclick="CheckChoice()" AC22_E><input type="checkbox" name="ChoiceNumber[22]" value="22:{OddsID22}"></td>
    <td class="mbline_baratio">&nbsp;</td>
  </tr>
  <tr class="mcen">
    <td class="mbline_nb">{AnimalsParam11}</td>
    <th class="mcen">{AnimalsTip11}</th>
	<td class="mbline_baratio">{AnimalsOdds11}</td>
    <td class="mbline_baratio" id="AnimalsOdds11" AC11_S onmouseover="ChangeClass(11, 1)" onmouseout="ChangeClass(11, 0)" onclick="CheckChoice()" AC11_E><input type="checkbox" name="ChoiceNumber[11]" value="11:{OddsID11}"></td>

    <th class="mcen">{AnimalsTip11}</th>
	<td class="mbline_baratio">{AnimalsOdds23}</td>
    <td class="mbline_baratio" id="AnimalsOdds23" AC23_S onmouseover="ChangeClass(23, 1)" onmouseout="ChangeClass(23, 0)" onclick="CheckChoice()" AC23_E><input type="checkbox" name="ChoiceNumber[23]" value="23:{OddsID23}"></td>
    <td class="mbline_baratio">&nbsp;</td>
  </tr>
  <tr class="mcen">
    <td class="mbline_nb">{AnimalsParam12}</td>
    <th class="mcen">{AnimalsTip12}</th>
	<td class="mbline_baratio">{AnimalsOdds12}</td>
    <td class="mbline_baratio" id="AnimalsOdds12" AC12_S onmouseover="ChangeClass(12, 1)" onmouseout="ChangeClass(12, 0)" onclick="CheckChoice()" AC12_E><input type="checkbox" name="ChoiceNumber[12]" value="12:{OddsID12}"></td>

    <th class="mcen">{AnimalsTip12}</th>
	<td class="mbline_baratio">{AnimalsOdds24}</td>
    <td class="mbline_baratio" id="AnimalsOdds24" AC24_S onmouseover="ChangeClass(24, 1)" onmouseout="ChangeClass(24, 0)" onclick="CheckChoice()" AC24_E><input type="checkbox" name="ChoiceNumber[24]" value="24:{OddsID24}"></td>
    <td class="mbline_baratio"><input type="submit" name="BSubmit" value="{BSubmit}" class="zabottonR" disabled>
	  <input type="reset" value="{BReset}" class="zabotton" style="color: #FF0000;"></td>
  </tr>
</table>

</form>
</body>
</html>